package com.speljohan.rsbot.event.impl;

import java.awt.Graphics;

import com.speljohan.rsbot.accessors.Client;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.event.listeners.TextPaintListener;
import com.speljohan.rsbot.script.Methods;

public class TMousePosition extends Methods implements TextPaintListener {
	public final static TMousePosition inst = new TMousePosition();

	private TMousePosition() {
	}

	public int drawLine(final Graphics render, int idx) {
		final Client client = Bot.getClient();
		final int mouse_x = client.getMouseX();
		final int mouse_y = client.getMouseY();
		Methods.drawLine(render, idx++, "Mouse Position " + mouse_x + ","
				+ mouse_y);
		return idx;
	}
}
